package com.yikai.p3.common;

import lombok.Data;
import lombok.EqualsAndHashCode;

// 统一异常处理
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends RuntimeException {
    private ResponseCodeEnum responseCode;

    public BaseException(ResponseCodeEnum responseCode, String message) {
        super(message);
        setResponseCode(responseCode);
    }

}